package collection;

import java.util.ArrayList;

public class Student <T>{
    int age;
    String name;
    T salary;

    public static void main(String[] args) {
        Student s1 = new Student();
        s1.salary = 123.45;
        s1.age=11;
        s1.name="John";
        s1.salary="123.45";
        s1.salary=11;
        s1.salary=new ArrayList<>();
        s1.salary=new int[4];
        Student<String> s2 = new Student();
        s2.salary="";
        //s2.salary=123.45;

    }
}
